%% Config

%#ok<*NOPTS>
data=floor(now*24*60*60)
data=11*60*60;

%% Server
time=floor(mod(data,43200))
time_a=floor(mod(data+3600,86400)/43200)

%% AVR
GLOB_H=floor((time/3600)+1)
GLOB_M=floor((mod(time,3600)/60))
GLOB_S=floor(mod(time,60))
GLOB_AP=floor(time_a)